﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListWarnInfoMan.aspx.cs"
    Inherits="dzs.Web.supply.ListWarnInfoMan" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script language="javascript" src="/js/CheckBox.js" type="text/javascript"></script>
    <link href="../css/myStyle.css" rel="stylesheet" />
    <link href="../style.css" type="text/css" rel="stylesheet" />
    <script src="../js/jquery.js"></script>
    <script src="../js/jquery-ui.min.js"></script>
     <script src="../Scripts/JsTools.js" type="text/javascript"></script>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="style1">
            <tr>
                <td style="height: 18px; text-align: center;">
                    <strong>物料预警管理</strong>
                </td>
            </tr>
            <tr>
                <td style="height: 18px; text-align: center;">
                    <asp:GridView ID="gridView" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        BorderWidth="1px" CellPadding="3" DataKeyNames="warnId" OnPageIndexChanging="gridView_PageIndexChanging"
                        OnRowCreated="gridView_OnRowCreated"
                        OnRowDataBound="gridView_RowDataBound" RowStyle-HorizontalAlign="Center"
                        Width="100%" PageSize="20" >
                        <Columns>
                            <asp:TemplateField HeaderText="选择">
                              <HeaderTemplate>
                            <input id="chk_all" type="checkbox" onclick="checkall(this)" />全选
                            </HeaderTemplate>
                            <ItemTemplate>
                                 <asp:CheckBox ID="DeleteThis"  runat="server" />
                            </ItemTemplate>
                        </asp:TemplateField>
                            <asp:BoundField DataField="material" HeaderText="物料名称" ItemStyle-HorizontalAlign="Center"
                                SortExpression="material">
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="minNums" HeaderText="最小预警数量" ItemStyle-HorizontalAlign="Center"
                                SortExpression="minNums">
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="maxNums" HeaderText="最大预警数量" ItemStyle-HorizontalAlign="Center"
                                SortExpression="maxNums">
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="warnTime" HeaderText="预警时间" ItemStyle-HorizontalAlign="Center"
                                SortExpression="warnTime">
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:BoundField DataField="cguid" HeaderText="所属仓管员" ItemStyle-HorizontalAlign="Center"
                                SortExpression="cguid">
                                <ItemStyle HorizontalAlign="Center"></ItemStyle>
                            </asp:BoundField>
                            <asp:HyperLinkField ControlStyle-Width="50" DataNavigateUrlFields="warnId" DataNavigateUrlFormatString="Modify.aspx?id={0}"
                                HeaderText="编辑" Text="编辑" Visible="False">
                                <ControlStyle Width="50px"></ControlStyle>
                            </asp:HyperLinkField>
                            <asp:TemplateField ControlStyle-Width="50" HeaderText="删除" Visible="false">
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Delete"
                                        Text="删除"></asp:LinkButton>
                                </ItemTemplate>
                                <ControlStyle Width="50px"></ControlStyle>
                            </asp:TemplateField>
                        </Columns>
                        <RowStyle HorizontalAlign="Center"></RowStyle>
                        <PagerStyle CssClass="mypager" />
                    </asp:GridView>
                </td>
            </tr>
            <tr>
                <td style="height: 18px; text-align: center;">
                    <asp:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click" Text="删 除" Width="117px" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
